package chp05;

public class Test10 {

    public static void main(String[] args) {
        //do...while

        int num = 100;
        //while: 先判断，再执行，所以有可能一次都不会执行
        while (num <= 10){
            System.out.println("while:"+num);
            num++;
        }

        //do..while: 先执行，再判断，所以最少会执行一次
        do{
            System.out.println("do..while:"+num);
            num++;
        }while (num<=10);

    }
}
